[IA64] Move nvram from /usr to /var
authorAlex Williamson <alex.williamson@hp.com>
Tue, 28 Aug 2007 18:25:37 +0000 (12:25 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Tue, 28 Aug 2007 18:25:37 +0000 (12:25 -0600)
commit200472a35b4d894da96bd1b1232a19e9de9801b9
tree157932adb11261048ade0e740bcaff898b60cf66
parent4634c6b2d5614c6aec0bfe8fdca229e6029e4d79
[IA64] Move nvram from /usr to /var

Presently nvram is stored in /usr/lib/xen/boot/nvram_<domain> next to the guest
firmware.  This violates the FHS because /usr might be mounted read-only.  This
patch moves the nvram storage to /var/lib/xen/nvram/nvram_<domain>

Also clean up:
- references to stat_buf assumed that stat() had succeeded; use access()
  instead since it's easier and doesn't require stat_buf at all
- nvram_path[PATH_MAX] instead of nvram_path[100]
- strncpy(..., strlen(src)) is meaningless, re-order length tests to work
  correctly

Signed-off-by: Aron Griffis <aron@hp.com>
tools/libxc/ia64/xc_ia64_hvm_build.c